package com.quectel.core.module.grid.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/02/03 15:45
 */
@Data
@Schema
public class GridPlanDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     *
     */
    @Schema(description = "")
    private Long tenantId;

    /**
     * 计划名称
     */
    @Schema(description = "计划名称")
    private String name;

    /**
     * 计划开始时间
     */
    @Schema(description = "计划开始时间")
    private Date startTime;

    /**
     * 计划结束时间
     */
    @Schema(description = "计划结束时间")
    private Date endTime;

    /**
     * 执行人id
     */
    @Schema(description = "执行人id")
    private Long execUserId;

    /**
     * 每周工作计划[1,3,7]
     */
    @Schema(description = "每周工作计划[1,3,7]")
    private String weekPlan;

    /**
     * 时间段配置[03:00-06:00]
     */
    @Schema(description = "时间段配置[03:00-06:00]")
    private String dayPeriodArr;

    /**
     * 巡检对象
     */
    @Schema(description = "巡检对象")
    private String patrolObj;

    /**
     * 巡检对象地址
     */
    @Schema(description = "巡检对象地址")
    private String patrolObjAddress;

    /**
     * 巡检内容备注
     */
    @Schema(description = "巡检内容备注")
    private String remark;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "提交网格id")
    private List<Long> bindGrid;

    @Schema(description = "网格列表")
    private List<GridDto> gridList;

    @Schema(description = "网格员列表")
    private List<GridMemberDto> gridMemberList;

    @Schema(description = "网格员名")
    private String memberNameStr;
    /************非数据库字段 end **************/
}
